package zwo.model.dto;

import zwo.model.Category;

public class CategoryDTO extends Category {
    private Integer page;
    private Integer limit;

    public Integer getPage() {
        return (page - 1) * getLimit();
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
